package net.xinqushi.service.impl;

import javax.annotation.Resource;
import org.springframework.stereotype.Component;
import net.xinqushi.dao.AlbumDAO;
import net.xinqushi.model.Album;
import net.xinqushi.service.AlbumService;

@Component(value="albumservice")
public class AlbumServiceImpl implements AlbumService {

	AlbumDAO albumDAO;
	
	
	public AlbumDAO getAlbumDAO() {
		return albumDAO;
	}

	@Resource
	public void setAlbumDAO(AlbumDAO albumDAO) {
		this.albumDAO = albumDAO;
	}
	@Override
	public void add(Album album) {
		// TODO Auto-generated method stub
		albumDAO.save(album);
	}

	
	

}
